Api.GetVariable 方法

取得使用者定義變數的細節。

命名空間IntervalZero.KINGSTAR.Local.Api

組合: IntervalZero.KINGSTAR.Local.Api (於 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0

語法

C#VB
public KsReturn<UserVariable> GetVariable(
       string Name,
       UserVariable Parent = null
)
Public Function GetVariable(
       Name As String,
       Parent = null As UserVariable
) As KsReturn(Of UserVariable)

參數

Name

型別:string

變數名稱。

 

Parent

型別:UserVariable

預設值:null

UserVariable 的父資料夾,預設會從根資料夾取得變數。

回傳值

型別:KsReturn<UserVariable>

回傳一個 KsError 代碼及一個使用者定義變數。

備註

可用的 EtherCAT 狀態

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

範例

C#
N/A

參見

Api 類別

IntervalZero.KINGSTAR.Local.Api 命名空間